FHIR © HL7.org  |  Server Home  |  FHIR Server FHIR Server 3.4.11  |  FHIR Version n/a  User: [n/a]

Resource StructureMap/FHIR Server from package hl7.fhir.uv.xver#current (47 ms)

Package hl7.fhir.uv.xver
Type StructureMap
Id Id
FHIR Version R5
Source http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-Encounter3to2.html
Url http://hl7.org/fhir/StructureMap/Encounter3to2
Version 0.1.0
Status active
Date 2024-02-22T03:16:50+00:00
Name Encounter3to2
Title Encounter Transforms: R3 to R2
Experimental False
Realm uv
Authority hl7
Description EncounterTransformsR3toR2

Resources that use this resource

No resources found


Resources that this resource uses

No resources found



Narrative

Note: links and images are rebased to the (stated) source

/// url = 'http://hl7.org/fhir/StructureMap/Encounter3to2'
/// name = 'Encounter3to2'
/// title = 'Encounter Transforms: R3 to R2'
/// status = 'active'

uses "http://hl7.org/fhir/3.0/Encounter" alias Encounter as source
uses "http://hl7.org/fhir/1.0/Encounter" alias EncounterR2 as target

imports "http://hl7.org/fhir/StructureMap/*3to2"

group Encounter(source src : Encounter, target tgt : EncounterR2) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier "Encounter-identifier";
  src.status check status != 'entered-in-error' -> tgt.status "Encounter-status";
  src.statusHistory as vs0 -> tgt.statusHistory as vt0 then encStatusHistory(vs0, vt0) "Encounter-statusHistory";
  src.class as v -> tgt.class = translate(v, 'http://hl7.org/fhir/ConceptMap/Encounter.class-R3toR2', 'code') "Encounter-class";
  src.type -> tgt.type "Encounter-type";
  src.priority -> tgt.priority "Encounter-priority";
  src.subject -> tgt.patient "Encounter-patient";
  src.episodeOfCare -> tgt.episodeOfCare "Encounter-episodeOfCare";
  src.incomingReferral -> tgt.incomingReferral "Encounter-incomingReferral";
  src.participant as vs0 -> tgt.participant as vt0 then encParticipant(vs0, vt0) "Encounter-participant";
  src.appointment -> tgt.appointment "Encounter-appointment";
  src.period -> tgt.period "Encounter-period";
  src.length as vs -> tgt.length as vt then DurationToQuantity(vs, vt) "Encounter-length";
  src.reason -> tgt.reason "Encounter-reason";
  src.diagnosis as d then encDiagnosis(d, tgt) "Encounter-indication";
  src.hospitalization as vs0 -> tgt.hospitalization as vt0 then encHospitaization(vs0, vt0) "Encounter-hospitalization";
  src.location as vs0 -> tgt.location as vt0 then encLocation(vs0, vt0) "Encounter-location";
  src.serviceProvider -> tgt.serviceProvider "Encounter-serviceProvider";
  src.partOf -> tgt.partOf "Encounter-partOf";
}

group encDiagnosis(source src, target tgt) extends BackboneElement {
  src.condition as v where src.role.coding.code.contains('AD').not() and role.coding.code.contains('DD').not() -> tgt.indication = v "indication-condition1";
  src.condition as v where src.role.coding.code.contains('AD') ->  tgt.hospitalization as h,  h.admittingDiagnosis = v "indication-condition2";
  src.condition as v where src.role.coding.code.contains('DD') ->  tgt.hospitalization as h,  h.dischargeDiagnosis = v "indication-condition3";
}

group encStatusHistory(source src, target tgt) extends BackboneElement {
  src.status -> tgt.status "statusHistory-status";
  src.period -> tgt.period "statusHistory-period";
}

group encParticipant(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type "participant-type";
  src.period -> tgt.period "participant-period";
  src.individual -> tgt.individual "participant-individual";
}

group encHospitaization(source src, target tgt) extends BackboneElement {
  src.preAdmissionIdentifier -> tgt.preAdmissionIdentifier "hospitalization-preAdmissionIdentifier";
  src.origin -> tgt.origin "hospitalization-origin";
  src.admitSource -> tgt.admitSource "hospitalization-admitSource";
  src.reAdmission -> tgt.reAdmission "hospitalization-reAdmission";
  src.dietPreference -> tgt.dietPreference "hospitalization-dietPreference";
  src.specialCourtesy -> tgt.specialCourtesy "hospitalization-specialCourtesy";
  src.specialArrangement -> tgt.specialArrangement "hospitalization-specialArrangement";
  src.destination -> tgt.destination "hospitalization-destination";
  src.dischargeDisposition -> tgt.dischargeDisposition "hospitalization-dischargeDisposition";
}

group encLocation(source src, target tgt) extends BackboneElement {
  src.location -> tgt.location "location-location";
  src.status -> tgt.status "location-status";
  src.period -> tgt.period "location-period";
}


Source

{
  "resourceType" : "StructureMap",
  "id" : "Encounter3to2",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/Encounter3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Encounter3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Encounter Transforms: R3 to R2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/3.0/Encounter<span style=\"color: navy\">&quot; </span><b>alias </b>Encounter <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/1.0/Encounter<span style=\"color: navy\">&quot; </span><b>alias </b>EncounterR2 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/StructureMap/*3to2<span style=\"color: navy\">&quot;\r\n</span>\r\n<b>group </b>Encounter<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>Encounter, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>EncounterR2<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span> src.identifier<span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier <i>&quot;Encounter-identifier&quot;</i><span style=\"color: navy\">;</span>\r\n src.status<b> check </b>status != 'entered-in-error'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.status <i>&quot;Encounter-status&quot;</i><span style=\"color: navy\">;</span>\r\n src.statusHistory<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.statusHistory<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>encStatusHistory<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span> <i>&quot;Encounter-statusHistory&quot;</i><span style=\"color: navy\">;</span>\r\n src.class<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.class = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://hl7.org/fhir/ConceptMap/Encounter.class-R3toR2'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span> <i>&quot;Encounter-class&quot;</i><span style=\"color: navy\">;</span>\r\n src.type<span style=\"color: navy\"><b> -&gt; </b></span>tgt.type <i>&quot;Encounter-type&quot;</i><span style=\"color: navy\">;</span>\r\n src.priority<span style=\"color: navy\"><b> -&gt; </b></span>tgt.priority <i>&quot;Encounter-priority&quot;</i><span style=\"color: navy\">;</span>\r\n src.subject<span style=\"color: navy\"><b> -&gt; </b></span>tgt.patient <i>&quot;Encounter-patient&quot;</i><span style=\"color: navy\">;</span>\r\n src.episodeOfCare<span style=\"color: navy\"><b> -&gt; </b></span>tgt.episodeOfCare <i>&quot;Encounter-episodeOfCare&quot;</i><span style=\"color: navy\">;</span>\r\n src.incomingReferral<span style=\"color: navy\"><b> -&gt; </b></span>tgt.incomingReferral <i>&quot;Encounter-incomingReferral&quot;</i><span style=\"color: navy\">;</span>\r\n src.participant<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.participant<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>encParticipant<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span> <i>&quot;Encounter-participant&quot;</i><span style=\"color: navy\">;</span>\r\n src.appointment<span style=\"color: navy\"><b> -&gt; </b></span>tgt.appointment <i>&quot;Encounter-appointment&quot;</i><span style=\"color: navy\">;</span>\r\n src.period<span style=\"color: navy\"><b> -&gt; </b></span>tgt.period <i>&quot;Encounter-period&quot;</i><span style=\"color: navy\">;</span>\r\n src.length<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.length<b> as </b><span style=\"color: maroon\">vt</span><b> then </b>DurationToQuantity<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span> <i>&quot;Encounter-length&quot;</i><span style=\"color: navy\">;</span>\r\n src.reason<span style=\"color: navy\"><b> -&gt; </b></span>tgt.reason <i>&quot;Encounter-reason&quot;</i><span style=\"color: navy\">;</span>\r\n src.diagnosis<b> as </b><span style=\"color: maroon\">d</span><b> then </b>encDiagnosis<span style=\"color: navy\">(</span><span style=\"color: maroon\">d</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span> <i>&quot;Encounter-indication&quot;</i><span style=\"color: navy\">;</span>\r\n src.hospitalization<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.hospitalization<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>encHospitaization<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span> <i>&quot;Encounter-hospitalization&quot;</i><span style=\"color: navy\">;</span>\r\n src.location<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.location<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>encLocation<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span> <i>&quot;Encounter-location&quot;</i><span style=\"color: navy\">;</span>\r\n src.serviceProvider<span style=\"color: navy\"><b> -&gt; </b></span>tgt.serviceProvider <i>&quot;Encounter-serviceProvider&quot;</i><span style=\"color: navy\">;</span>\r\n src.partOf<span style=\"color: navy\"><b> -&gt; </b></span>tgt.partOf <i>&quot;Encounter-partOf&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>encDiagnosis<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.condition<b> as </b><span style=\"color: maroon\">v</span><b> where </b>src.role.coding.code.contains('AD').not() and role.coding.code.contains('DD').not()<span style=\"color: navy\"><b> -&gt; </b></span>tgt.indication = <span style=\"color: maroon\">v</span> <i>&quot;indication-condition1&quot;</i><span style=\"color: navy\">;</span>\r\n src.condition<b> as </b><span style=\"color: maroon\">v</span><b> where </b>src.role.coding.code.contains('AD')<span style=\"color: navy\"><b> -&gt; </b></span> tgt.hospitalization<b> as </b><span style=\"color: maroon\">h</span><span style=\"color: navy\">, </span> h.admittingDiagnosis = <span style=\"color: maroon\">v</span> <i>&quot;indication-condition2&quot;</i><span style=\"color: navy\">;</span>\r\n src.condition<b> as </b><span style=\"color: maroon\">v</span><b> where </b>src.role.coding.code.contains('DD')<span style=\"color: navy\"><b> -&gt; </b></span> tgt.hospitalization<b> as </b><span style=\"color: maroon\">h</span><span style=\"color: navy\">, </span> h.dischargeDiagnosis = <span style=\"color: maroon\">v</span> <i>&quot;indication-condition3&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>encStatusHistory<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.status<span style=\"color: navy\"><b> -&gt; </b></span>tgt.status <i>&quot;statusHistory-status&quot;</i><span style=\"color: navy\">;</span>\r\n src.period<span style=\"color: navy\"><b> -&gt; </b></span>tgt.period <i>&quot;statusHistory-period&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>encParticipant<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.type<span style=\"color: navy\"><b> -&gt; </b></span>tgt.type <i>&quot;participant-type&quot;</i><span style=\"color: navy\">;</span>\r\n src.period<span style=\"color: navy\"><b> -&gt; </b></span>tgt.period <i>&quot;participant-period&quot;</i><span style=\"color: navy\">;</span>\r\n src.individual<span style=\"color: navy\"><b> -&gt; </b></span>tgt.individual <i>&quot;participant-individual&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>encHospitaization<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.preAdmissionIdentifier<span style=\"color: navy\"><b> -&gt; </b></span>tgt.preAdmissionIdentifier <i>&quot;hospitalization-preAdmissionIdentifier&quot;</i><span style=\"color: navy\">;</span>\r\n src.origin<span style=\"color: navy\"><b> -&gt; </b></span>tgt.origin <i>&quot;hospitalization-origin&quot;</i><span style=\"color: navy\">;</span>\r\n src.admitSource<span style=\"color: navy\"><b> -&gt; </b></span>tgt.admitSource <i>&quot;hospitalization-admitSource&quot;</i><span style=\"color: navy\">;</span>\r\n src.reAdmission<span style=\"color: navy\"><b> -&gt; </b></span>tgt.reAdmission <i>&quot;hospitalization-reAdmission&quot;</i><span style=\"color: navy\">;</span>\r\n src.dietPreference<span style=\"color: navy\"><b> -&gt; </b></span>tgt.dietPreference <i>&quot;hospitalization-dietPreference&quot;</i><span style=\"color: navy\">;</span>\r\n src.specialCourtesy<span style=\"color: navy\"><b> -&gt; </b></span>tgt.specialCourtesy <i>&quot;hospitalization-specialCourtesy&quot;</i><span style=\"color: navy\">;</span>\r\n src.specialArrangement<span style=\"color: navy\"><b> -&gt; </b></span>tgt.specialArrangement <i>&quot;hospitalization-specialArrangement&quot;</i><span style=\"color: navy\">;</span>\r\n src.destination<span style=\"color: navy\"><b> -&gt; </b></span>tgt.destination <i>&quot;hospitalization-destination&quot;</i><span style=\"color: navy\">;</span>\r\n src.dischargeDisposition<span style=\"color: navy\"><b> -&gt; </b></span>tgt.dischargeDisposition <i>&quot;hospitalization-dischargeDisposition&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>encLocation<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.location<span style=\"color: navy\"><b> -&gt; </b></span>tgt.location <i>&quot;location-location&quot;</i><span style=\"color: navy\">;</span>\r\n src.status<span style=\"color: navy\"><b> -&gt; </b></span>tgt.status <i>&quot;location-status&quot;</i><span style=\"color: navy\">;</span>\r\n src.period<span style=\"color: navy\"><b> -&gt; </b></span>tgt.period <i>&quot;location-period&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode" : "fhir"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger" : 1,
      "_valueInteger" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode" : "draft",
      "_valueCode" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    }
  ],
  "url" : "http://hl7.org/fhir/StructureMap/Encounter3to2",
  "version" : "0.1.0",
  "name" : "Encounter3to2",
  "title" : "Encounter Transforms: R3 to R2",
  "status" : "active",
  "date" : "2024-02-22T03:16:50+00:00",
  "publisher" : "HL7 International / FHIR Infrastructure",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description" : "EncounterTransformsR3toR2",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/3.0/Encounter",
      "mode" : "source",
      "alias" : "Encounter"
    },
    {
      "url" : "http://hl7.org/fhir/1.0/Encounter",
      "mode" : "target",
      "alias" : "EncounterR2"
    }
  ],
  "import" : [
    "http://hl7.org/fhir/StructureMap/*3to2"
  ],
  "group" : [
    {
      "name" : "Encounter",
      "extends" : "DomainResource",
      "typeMode" : "type-and-types",
      "input" : [
        {
          "name" : "src",
          "type" : "Encounter",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "type" : "EncounterR2",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "Encounter-identifier",
          "source" : [
            {
              "context" : "src",
              "element" : "identifier",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "identifier",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-status",
          "source" : [
            {
              "context" : "src",
              "element" : "status",
              "variable" : "vvv",
              "check" : "status != 'entered-in-error'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "status",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-statusHistory",
          "source" : [
            {
              "context" : "src",
              "element" : "statusHistory",
              "variable" : "vs0"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "statusHistory",
              "variable" : "vt0"
            }
          ],
          "dependent" : [
            {
              "name" : "encStatusHistory",
              "parameter" : [
                {
                  "valueId" : "vs0"
                },
                {
                  "valueId" : "vt0"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-class",
          "source" : [
            {
              "context" : "src",
              "element" : "class",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "class",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "http://hl7.org/fhir/ConceptMap/Encounter.class-R3toR2"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-type",
          "source" : [
            {
              "context" : "src",
              "element" : "type",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "type",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-priority",
          "source" : [
            {
              "context" : "src",
              "element" : "priority",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "priority",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "patient",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-episodeOfCare",
          "source" : [
            {
              "context" : "src",
              "element" : "episodeOfCare",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "episodeOfCare",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-incomingReferral",
          "source" : [
            {
              "context" : "src",
              "element" : "incomingReferral",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "incomingReferral",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-participant",
          "source" : [
            {
              "context" : "src",
              "element" : "participant",
              "variable" : "vs0"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "participant",
              "variable" : "vt0"
            }
          ],
          "dependent" : [
            {
              "name" : "encParticipant",
              "parameter" : [
                {
                  "valueId" : "vs0"
                },
                {
                  "valueId" : "vt0"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-appointment",
          "source" : [
            {
              "context" : "src",
              "element" : "appointment",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "appointment",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-period",
          "source" : [
            {
              "context" : "src",
              "element" : "period",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "period",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-length",
          "source" : [
            {
              "context" : "src",
              "element" : "length",
              "variable" : "vs"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "length",
              "variable" : "vt"
            }
          ],
          "dependent" : [
            {
              "name" : "DurationToQuantity",
              "parameter" : [
                {
                  "valueId" : "vs"
                },
                {
                  "valueId" : "vt"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-reason",
          "source" : [
            {
              "context" : "src",
              "element" : "reason",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "reason",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-indication",
          "source" : [
            {
              "context" : "src",
              "element" : "diagnosis",
              "variable" : "d"
            }
          ],
          "dependent" : [
            {
              "name" : "encDiagnosis",
              "parameter" : [
                {
                  "valueId" : "d"
                },
                {
                  "valueId" : "tgt"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-hospitalization",
          "source" : [
            {
              "context" : "src",
              "element" : "hospitalization",
              "variable" : "vs0"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "hospitalization",
              "variable" : "vt0"
            }
          ],
          "dependent" : [
            {
              "name" : "encHospitaization",
              "parameter" : [
                {
                  "valueId" : "vs0"
                },
                {
                  "valueId" : "vt0"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-location",
          "source" : [
            {
              "context" : "src",
              "element" : "location",
              "variable" : "vs0"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "location",
              "variable" : "vt0"
            }
          ],
          "dependent" : [
            {
              "name" : "encLocation",
              "parameter" : [
                {
                  "valueId" : "vs0"
                },
                {
                  "valueId" : "vt0"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-serviceProvider",
          "source" : [
            {
              "context" : "src",
              "element" : "serviceProvider",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "serviceProvider",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "Encounter-partOf",
          "source" : [
            {
              "context" : "src",
              "element" : "partOf",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "partOf",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "encDiagnosis",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "indication-condition1",
          "source" : [
            {
              "context" : "src",
              "element" : "condition",
              "variable" : "v",
              "condition" : "src.role.coding.code.contains('AD').not() and role.coding.code.contains('DD').not()"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "indication",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "v"
                }
              ]
            }
          ]
        },
        {
          "name" : "indication-condition2",
          "source" : [
            {
              "context" : "src",
              "element" : "condition",
              "variable" : "v",
              "condition" : "src.role.coding.code.contains('AD')"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "hospitalization",
              "variable" : "h"
            },
            {
              "context" : "h",
              "element" : "admittingDiagnosis",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "v"
                }
              ]
            }
          ]
        },
        {
          "name" : "indication-condition3",
          "source" : [
            {
              "context" : "src",
              "element" : "condition",
              "variable" : "v",
              "condition" : "src.role.coding.code.contains('DD')"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "hospitalization",
              "variable" : "h"
            },
            {
              "context" : "h",
              "element" : "dischargeDiagnosis",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "v"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "encStatusHistory",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "statusHistory-status",
          "source" : [
            {
              "context" : "src",
              "element" : "status",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "status",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "statusHistory-period",
          "source" : [
            {
              "context" : "src",
              "element" : "period",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "period",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "encParticipant",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "participant-type",
          "source" : [
            {
              "context" : "src",
              "element" : "type",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "type",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "participant-period",
          "source" : [
            {
              "context" : "src",
              "element" : "period",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "period",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "participant-individual",
          "source" : [
            {
              "context" : "src",
              "element" : "individual",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "individual",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "encHospitaization",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "hospitalization-preAdmissionIdentifier",
          "source" : [
            {
              "context" : "src",
              "element" : "preAdmissionIdentifier",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "preAdmissionIdentifier",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "hospitalization-origin",
          "source" : [
            {
              "context" : "src",
              "element" : "origin",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "origin",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "hospitalization-admitSource",
          "source" : [
            {
              "context" : "src",
              "element" : "admitSource",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "admitSource",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "hospitalization-reAdmission",
          "source" : [
            {
              "context" : "src",
              "element" : "reAdmission",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "reAdmission",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "hospitalization-dietPreference",
          "source" : [
            {
              "context" : "src",
              "element" : "dietPreference",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "dietPreference",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "hospitalization-specialCourtesy",
          "source" : [
            {
              "context" : "src",
              "element" : "specialCourtesy",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "specialCourtesy",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "hospitalization-specialArrangement",
          "source" : [
            {
              "context" : "src",
              "element" : "specialArrangement",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "specialArrangement",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "hospitalization-destination",
          "source" : [
            {
              "context" : "src",
              "element" : "destination",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "destination",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "hospitalization-dischargeDisposition",
          "source" : [
            {
              "context" : "src",
              "element" : "dischargeDisposition",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "dischargeDisposition",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "encLocation",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "location-location",
          "source" : [
            {
              "context" : "src",
              "element" : "location",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "location",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "location-status",
          "source" : [
            {
              "context" : "src",
              "element" : "status",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "status",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "location-period",
          "source" : [
            {
              "context" : "src",
              "element" : "period",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "period",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.